// by Xeno
#define THIS_FILE "fn_deleteplayermarker.sqf"
#include "x_setup.sqf"
private "_marker";

_d_show_player_marker = GVAR(show_player_marker);
if (_d_show_player_marker > 0) then {
	switch (_d_show_player_marker) do {
		case 1: {systemChat (localize "STR_DOM_MISSIONSTRING_205")};
		case 2: {systemChat (localize "STR_DOM_MISSIONSTRING_206")};
		case 3: {systemChat (localize "STR_DOM_MISSIONSTRING_208")};
	};
};

if (_d_show_player_marker == 0) then {
	systemChat (localize "STR_DOM_MISSIONSTRING_209");
	sleep 2.123;
	{
		_marker = _x;
		_marker setMarkerPosLocal [0,0];
		_marker setMarkerAlphaLocal 0;
	} forEach GVAR(player_entities);
	systemChat (localize "STR_DOM_MISSIONSTRING_210");
} else {
	{
		_x setMarkerAlphaLocal 1;
	} forEach GVAR(player_entities);
};